﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jzy.Workflow.Line
{
    public partial class FlowLineInfo
    {
        public const string TABLE_NAME = "FlowLine";
        public const string INSERT_SQL = "insert into FlowLine ( [ID], [Name], [FlowID], [FromNodeID], [ToNodeID], [TypeID], [Rules]) values ( @ID, @Name, @FlowID, @FromNodeID, @ToNodeID, @TypeID, @Rules)";
        public const string UPDATE_SQL = "update FlowLine set  [ID] = @ID, [Name] = @Name, [FlowID] = @FlowID, [FromNodeID] = @FromNodeID, [ToNodeID] = @ToNodeID, [TypeID] = @TypeID, [Rules] = @Rules where ID = @ID";
        /// <summary>
        /// PK
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 线名称
        /// </summary>
        public String Name
        {
            get;
            set;
        }
        /// <summary>
        /// 流程ID
        /// </summary>
        public Int32 FlowID
        {
            get;
            set;
        }
        /// <summary>
        /// 起始节点
        /// </summary>
        public Int32 FromNodeID
        {
            get;
            set;
        }
        /// <summary>
        /// 结束结点
        /// </summary>
        public Int32 ToNodeID
        {
            get;
            set;
        }
        /// <summary>
        /// 线类型（直线、折线）
        /// </summary>
        public Int32 TypeID
        {
            get;
            set;
        }
        /// <summary>
        /// 规则
        /// </summary>
        public String Rules
        {
            get;
            set;
        }
    }

}
